package com.thought.wxsession.chain;

import com.thought.wxsession.service.IWxMsgService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.chain.impl.ChainBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author：zhuqinyue
 * @Package：com.thought.wxsession.chain
 * @Project：session-save
 * @name：WxMsgChain
 * @Date：2022/12/26 16:26
 * @Filename：WxMsgChain
 */
@Component
@Slf4j
public class WxMsgChain extends ChainBase {

    /*表情消息处理*/
    @Autowired
    private EmotionChain emotionChain;
    /*图片消息处理*/
    @Autowired
    private ImageChain imageChain;
    /*文字消息处理*/
    @Autowired
    private TextChain textChain;

    @Autowired
    private MeetingViceCallChain meetingViceCallChain;



    @PostConstruct
    public void init(){
        addCommand(emotionChain);
        addCommand(imageChain);
        addCommand(textChain);
        addCommand(meetingViceCallChain);
    }
}
